package org.xzx.cloud.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.xzx.cloud.constant.CouponStatus;
import org.xzx.cloud.entity.Coupon;

import java.util.List;


public interface CouponDao extends JpaRepository<Coupon, Integer> {
    List<Coupon> findAllByUserIdAndStatus(Long userId, CouponStatus status);
}
